﻿<div class="wrapper border-bottom white-bg page-heading">
	<div class="col-lg-pull-12">
		<ol class="breadcrumb">
			<li class="active">支付方式</li>
		</ol>
	</div>
</div>
<div ng-controller="paymentController">
	<div class="row ui-box">
		<div class="col-md-8">
			<a class="btn btn-primary btn-sm" ui-sref="app.manage.payment_detail({action:'add'})"><i class="fa fa-plus"></i> 添加</a>
		</div>
		<div class="col-md-4">
		</div>
	</div>
	<table class="table table-hover m-t-md">
		<thead>
			<tr style="background-color: #f7f7f9;">
				<th>通道</th>
				<th>名称</th>
				<th>启用/进件/多次</th>
				<th>单笔额度</th>
				<th>单卡额度</th>
				<th>编号</th>
				<th>支付费率</th>
				<th>结算类型</th>
				<th>结算费</th>
				<th width="130">操作</th>
			</tr>
		</thead>
		<tbody>
			<tr ng-repeat="item in model">
				<td>{{item.channel|channel_name}}({{item.channel}})</td>
				<td>{{item.name}}</td>
				<td>{{item.is_open?'启用':'禁用'}}/{{item.is_register?'进件':'否'}}/{{item.is_more?'多次':'1次'}}</td>
				<td>{{item.single_quota}}</td>
				<td>{{item.card_quota}}</td>
				<td colspan="4">
					<table class="table">
						<tr ng-repeat="settle in item.settles">
							<td>{{settle.code}}</td>
							<td>{{settle.fee}}</td>
							<td>{{settle.settle_type}}</td>
							<td>{{settle.settle}}</td>
						</tr>
					</table>
				</td>
				<td>
					<a class="btn btn-primary btn-xs" ui-sref="app.manage.payment_detail({action:'edit',id:{{item.id}}})"><i class="fa fa-cog"></i> 编辑</a>
					<button class="btn btn-primary btn-xs" ng-click="remove(item.id)"><i class="fa fa-trash"></i> 删除</button>
				</td>
			</tr>
		</tbody>
	</table>
</div>